package com.ruoyi.production.service.pesticide;

import java.util.List;
import com.ruoyi.production.domain.pesticide.PesticidePurchase;

/**
 * 农药购买信息Service接口
 *
 * @author ruoyi
 * @date 2021-07-12
 */
public interface IPesticidePurchaseService
{
    /**
     * 查询农药购买信息
     *
     * @param pesticidePurchaseId 农药购买信息ID
     * @return 农药购买信息
     */
    public PesticidePurchase selectPesticidePurchaseById(Long pesticidePurchaseId);

    /**
     * 查询农药购买信息列表
     *
     * @param pesticidePurchase 农药购买信息
     * @return 农药购买信息集合
     */
    public List<PesticidePurchase> selectPesticidePurchaseList(PesticidePurchase pesticidePurchase);

    /**
     * 新增农药购买信息
     *
     * @param pesticidePurchase 农药购买信息
     * @return 结果
     */
    public int insertPesticidePurchase(PesticidePurchase pesticidePurchase);

    /**
     * 修改农药购买信息
     *
     * @param pesticidePurchase 农药购买信息
     * @return 结果
     */
    public int updatePesticidePurchase(PesticidePurchase pesticidePurchase);

    /**
     * 批量删除农药购买信息
     *
     * @param pesticidePurchaseIds 需要删除的农药购买信息ID
     * @return 结果
     */
    public int deletePesticidePurchaseByIds(Long[] pesticidePurchaseIds);

    /**
     * 删除农药购买信息信息
     *
     * @param pesticidePurchaseId 农药购买信息ID
     * @return 结果
     */
    public int deletePesticidePurchaseById(Long pesticidePurchaseId);

    /**
     * 插入农药购买表更新农药量表
     * @param pesticidePurchase
     * @return
     */
    public int insertPurchaseUpdateAmount(PesticidePurchase pesticidePurchase);
}
